{include file="Include/H_ui_head" /}
<title>关于我们修改</title>
</head>
<body>
<article class="page-container">
    <script type="text/javascript" src="ADMIN_JS/nicEdit.js?v=122"></script>
    <form action="javascript:;" method="POST" class="form form-horizontal" id="submit">
        <div class="row cl">
            <label class="form-label col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="radio" name="status" value="1">通过
                <input type="radio" name="status" value="2" checked>驳回
            </div>
        </div>
        <div class="row cl content">
            <label class="form-label  col-sm-3"><span class="c-red">*</span>驳回内容：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="content" id="content" cols="30" rows="10" class="nicEdit-main"></textarea>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="hidden" name="hid" value="{$rs.with_id}">
                <button type="button" class="btn btn-success radius"
                        id="admin-role-save" name="admin-role-save" onclick="return reject()" >
                    <i class="icon-ok"></i>确定</button>
            </div>
        </div>
    </form>
</article>
{include file="include/H_ui_foot" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    function reject()
    {
        var id = $("[name='hid']").val();
        var message_type=$("input[name='status']:checked").val();;
        var content = $("#content").val();
        var loading =layer.msg('正在提交数据，请稍后...',{time:5000});
        var url = "{:url('Platform/about_edit')}";
        $.post(url,{id:id,message:content,message_type:message_type},function(data){
            layer.close(loading);
            if(data.code=='1'){
                layer.msg(data.msg,{time:2000});
                setTimeout(function(){
                    layer_close(this.index);
                    parent.location.reload();
                },1000);
            }else{
                layer.msg(data.msg,{time:2000});
            }
        });
    }
    $('input[type=radio][name=status]').click(function(){
        if(this.value == 1)
        {
         $(".content").hide();   
        }
        if(this.value == 2)
        {
            $(".content").show(); 
        }
    })
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
